export default {
    data(){
        return {
            height:0,
            totalHeight:0,
            delHeight:30
        }
    },
    computed:{
        maxY(){
            if(this.height && this.totalHeight){
                return this.totalHeight- 48 - this.height - 63 - 42 -52 - 20 - this.delHeight
            }
            return 0;
        }
    },

    mounted(){
        this.$nextTick(()=>{
            console.log(this.$refs.tableWrap.parentNode,this.$refs.tableWrap.parentNode.clientHeight)
            this.totalHeight = this.$refs.tableWrap.parentNode.clientHeight;
        })
        this.$parent.$on('push-height',(height)=>{
            this.totalHeight = this.$refs.tableWrap.parentNode.clientHeight;
            this.height = height;
        })
        this.$parent.$on('delAll-height',(delHeight)=>{
            this.delHeight = delHeight;
        })
        setTimeout(()=>{
            console.log(this.maxY)
        },3000)
    }
}